﻿<UserControl x:Class="cpe.cpein.UI.Controls.UCAddGroup"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="600" d:DesignWidth="600">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10" />
            <ColumnDefinition  />
            <ColumnDefinition  />
            <ColumnDefinition  />
            <ColumnDefinition  />
            <ColumnDefinition  />
            <ColumnDefinition  />
            <ColumnDefinition Width="10" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2" Text="Ajouter un Groupe" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" />
        <Rectangle Grid.ColumnSpan="7" Grid.Column="1" Fill="#FFF4F4F5" Margin="0,10,30,0" Grid.Row="1" Grid.RowSpan="18" Stroke="Black" VerticalAlignment="Stretch" StrokeThickness="1"/>
        <TextBlock Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="1" Text="Groupe" Name="lblGroupName" VerticalAlignment="Center" Margin="20,0,0,0"/>
        <TextBox Grid.Column="2" Grid.Row="2" Grid.ColumnSpan="2" Text="" Name="txtGroupName" VerticalAlignment="Center"/>
        <TextBlock Grid.Column="4" Grid.Row="2" Grid.ColumnSpan="1" Text="Type" Name="lblGroupType" VerticalAlignment="Center" Margin="20,0,0,0"/>
        <ComboBox Grid.Column="5" Grid.Row="2" Grid.ColumnSpan="2" Name="cmbBoxType" VerticalAlignment="Center" Margin="0,0,40,0" Height="22" DisplayMemberPath="Label" SelectedValuePath="Id"/>
        <TextBlock  Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" Text="On peut travailler pour" HorizontalAlignment="Left"  VerticalAlignment="Center" MinWidth="180" Margin="20,0,0,0"/>
        <CheckBox  Grid.Column="2" Grid.Row="3" Grid.ColumnSpan="1" Name="ChkBoxIsWorkable" Content="" HorizontalAlignment="Center" Margin="62,10,0,0"  VerticalAlignment="Top"/>
        <TextBlock Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="1" Text="Description" Name="lblGroupDesc" VerticalAlignment="Center" Margin="20,0,0,0"/>
        <TextBox Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="8" Grid.RowSpan="10" Name="TxtGroupDesc" VerticalAlignment="Stretch" Margin="15,10,45,0"/>
        <Button x:Name="btAdd" Grid.Column="2"  Grid.Row="17" Grid.ColumnSpan="2" Margin="0,0,0,0" Content="Ajouter" VerticalAlignment="Stretch" Click="btAdd_Click"/>
        <Button x:Name="btCancel" Grid.Column="4"  Grid.Row="17" Grid.ColumnSpan="2" Margin="0,0,0,0" Content="Annuler" VerticalAlignment="Stretch" Click="btCancel_Click"/>
        

    </Grid>
</UserControl>
